package com.ruoyi.dev.domain;

import com.ruoyi.common.annotation.Excel;
import javax.validation.constraints.NotNull;
import lombok.Data;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据验证对象 dev_validation
 * 
 * @author yepanpan
 * @date 2025-02-25
 */
@Data
public class DevValidation extends BaseEntity
{
    public static final String TYPE_SQL = "SQL";
    public static final String TYPE_REG = "reg";
    public static final String TYPE_META = "meta";
    private static final long serialVersionUID = 1L;

    /** 自增长主键ID */
    private Long id;

    /** 数据模型 */
    @Excel(name = "数据模型")
    private String modelName;
    @NotNull
    private Long modelId;

    /** 规则名称 */
    @Excel(name = "规则名称")
    @NotNull
    private String name;

    /** 类别 */
    @Excel(name = "类别", dictType="dev_validation_type", comboReadDict=true)
    @NotNull
    private String type;

    /** 数据字段 */
    @Excel(name = "数据字段")
    @NotNull
    private String fields;

    /** 表达式 */
    @Excel(name = "表达式")
    @NotNull
    private String sqls;

    /** 状态 */
    @Excel(name = "状态", dictType="ext_status", comboReadDict=true)
    private String status;


}
